import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/homePage',
    name: 'homePage',
    component: () => import('../views/homePage.vue'),
  },
  {
    path: "/",
    redirect: "/regionDevice"  // 将根路径重定向到 /regionDevice
  },
  {
    path: '/regionDevice',
    name: 'regionDevice',
    component: () => import('../views/regionDevice.vue'),
    
    meta:{
      keepAlive:true,
      isBack: true

  }

  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
